<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div>
	<jsp:useBean id="syndromeBean" scope="application"
		class="com.immunology.bean.SyndromeBean" />
	<h2>Список синдромів</h2>
	<form action="RedirectSyndromeParameterServlet" method="post">
		<table class="table">
			<tr>
				<td>id</td>
				<td>Назва синдрому</td>
			</tr>
			<c:forEach items="${syndromeBean.syndromeList}"
				var="syndrome">
				<tr>
					<td><c:out value="${syndrome.id}" /></td>
					<td><c:out value="${syndrome.name}" /></td>
					<td class="submit">
						<input type="submit" name="${syndrome.id}" value="Редагувати">
					</td>
				</tr>
			</c:forEach>
		</table>
	</form>
</div>